#!/usr/bin/env python
# coding=utf-8
"""
# @Created on : 2016/05/08 9:06
# @Author     : ldf (ldf@eehello.com)
# @Link       : http://www.eehello.com
# @Version    : 
# 本程序在python2.7下测试通过
"""

from multiprocessing import Pool

def f(x):
    print x*x
    return x*x


p = Pool(processes=5)
print p.apply_async(f,range(10))
